import request from '@/utils/request'
/**
 * 登录信息
 */
export const reqLogin = (obj) => {
  return request({
    url: '/sys/login',
    method: 'post',
    data: obj
  })
}
/**
 *
 * 获取用户基本资料
 */
export const reqUserInfo = () => {
  return request({
    url: '/sys/profile',
    method: 'post'
  })
}
/**
 * 获取用户的基本信息
 */
export function reqGetUserInfo(id) {
  return request({

    url: `/sys/user/${id}`,
    method: 'get'
  })
}
/**
 * 获取员工简单数据
 */
export const reqGetEmployeeSimple = () => {
  return request({
    method: 'get',
    url: '/sys/user/simple'
  })
}
